<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@include file="/WEB-INF/commons/taglibs.jsp"%>
<%@include file="/WEB-INF/commons/common-header.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>一呼百应企业商铺后台管理系统</title>
<link rel="stylesheet" type="text/css"
	href="${ctx }/resources/css/base.css" />
<link rel="stylesheet" type="text/css"
	href="${ctx }/resources/css/authentication.css" />
<script src="${ctx }/resources/js/inlet.js"></script>
<script src="${ctx }/resources/js/jquery-ui-1.8.20.custom.js"></script>
<script src="${ctx }/resources/js/youboy.js" type="text/javascript"></script>
</head>

<body class="body_bg">

<c:if test="${completedContactsRatio != '100' || completedIntroRatio < '50' || primaryProductsRatio !='50'}">
	<div class="index_shadow"></div>
	<div class="index_hint"
		style="_top: expression(eval(document.documentElement.scrollTop) )">
		<div class="hint_close">
			<img src="${ctx }/resources/images/pic_c.gif" />
		</div>
		<div class="clear"></div>
		<h2>新铺开张指引${completedContactsRatio}...${completedIntroRatio}....${primaryProductsRatio}</h2>
		<div class="process">

			<ul>
				<c:choose>
					<c:when test="${completedContactsRatio == 100 }">
						<li>
							<h3>已完成：联系方式</h3> <span class="index_img"><img src="${ctx }/resources/images/hint_06.jpg" /></span>
						</li>
					</c:when>
					<c:otherwise>
						<li>
							<h3>
								<a href="${ctx}/enterprise/contacts/center">未完成：联系方式</a>
							</h3>
							<p>填写真实的联系资料，你的客户更方便与你沟通。</p>
						</li>
					</c:otherwise>
				</c:choose>

				<c:choose>
					<c:when test="${completedIntroRatio >= 50 }">
						<li>
							<h3>已完成：填写公司简介信息</h3> <span class="index_img"><img
								src="${ctx }/resources/images/hint_06.jpg" /></span>
						</li>
					</c:when>
					<c:otherwise>
						<li>
							<h3>
								<a href="${ctx }/enterprise/intro/center">未完成：填写公司简介</a>
							</h3>
							<p>完成详尽的公司信息，你的商铺获得更多的信任。</p>
						</li>
					</c:otherwise>
				</c:choose>

				<c:choose>
					<c:when test="${primaryProductsRatio == 50 }">
						<li>
							<h3>已完成：主营产品</h3> <span class="index_img"><img
								src="${ctx }/resources/images/hint_06.jpg" /></span>
						</li>
					</c:when>
					<c:otherwise>
						<li>
							<h3>
								<a href="${ctx }/enterprise/primary-products/center">未完成：填写公司主营产品</a>
							</h3>
							<p>完成详尽的主营产品，你的商铺获得更多的关注。</p>
						</li>
					</c:otherwise>
				</c:choose>
			</ul>
		</div>
		<div class="hint_grade">
			<div class="grade_type1 index_align">
				&nbsp;你的商铺效果评分:<span class="grade_tpye1">${sessionScope["b2b.subject.enterprise"].scores.gradeScore}</span><span
					class="grade_type2">分</span>产品推广销售成功机会只有:<span class="grade_tpye1">${sessionScope["b2b.subject.enterprise"].scores.saleLeads}%</span>
			</div>
			<p class="green_type index_align">商铺评分值越高，商铺产品成功推广销售的机会越大。</p>
		</div>
	</div>
	</div>
</c:if>

	<%@include file="/WEB-INF/views/admin/head.jsp"%>
	<iframe id="iframepageindex" src="${ctx}/admin/centre" name="centre"
		frameBorder="0" scrolling="no" width="100%"></iframe>
	<%@include file="/WEB-INF/views/admin/foot.jsp"%>
	<script type="text/javascript">
		var ifmId = "iframepageindex";
		document.getElementById(ifmId).onload = function() {
			var ifm = document.getElementById(ifmId);
			ifm.height = 0;
			if (navigator.userAgent.indexOf("Firefox") != -1) {
				ifm.height = "1700px";
				return false;
			}
			var subWeb = document.frames ? document.frames[ifmId].document
					: ifm.contentDocument;
			if (ifm !== null && subWeb !== null) {
				ifm.height = subWeb.body.scrollHeight + "px";
			}
		};
	</script>
</body>
</html>
